package entity

import (
	"shqsoft.cn/pas3ui/base"
)

//ShJhcwDcSetJD 数据采集设置-开关
type ShJhcwDcSetJD struct {
	NIAN  int `gorm:"column:NIAN"`
	JIDU  int `gorm:"column:JIDU"`
	STATE int `gorm:"column:STATE"`
}

//TableName
func (ShJhcwDcSetJD) TableName() string {
	return "SH_JHCW_CONF_STATE"
}

func ShJhcwDcSetJDEF() base.EntityFunc {
	return func() interface{} {
		entity := ShJhcwDcSetJD{}
		return &entity
	}
}
func ShJhcwDcSetJDESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []ShJhcwDcSetJD
		return &entities
	}
}

//ShJhcwDcSetZHT 数据采集设置-中后台操作人设置
type ShJhcwDcSetZHT struct {
	NIAN int    `gorm:"column:NIAN"`
	BMID int    `gorm:"column:BMID"`
	BMMC string `gorm:"column:BMMC"`
	CZR  int    `gorm:"column:CZR"`
	ISCZ int    `gorm:"column:ISCZ"`
}

//TableName
func (ShJhcwDcSetZHT) TableName() string {
	return "SH_JHCW_ZHT_PERM"
}

func ShJhcwDcSetZHTEF() base.EntityFunc {
	return func() interface{} {
		entity := ShJhcwDcSetZHT{}
		return &entity
	}
}
func ShJhcwDcSetZHTESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []ShJhcwDcSetZHT
		return &entities
	}
}

//ShJhcwDcSetJYDW 数据采集设置-经营单位操作人设置
type ShJhcwDcSetJYDW struct {
	NIAN int    `gorm:"column:NIAN"`
	ZBID int    `gorm:"column:ZBID"`
	ZBMC string `gorm:"column:ZBMC"`
	BMID int    `gorm:"column:BMID"`
	BMMC string `gorm:"column:BMMC"`
	ISDF int    `gorm:"column:ISDF"`
	CZR  int    `gorm:"column:CZR"`
	ISCZ int    `gorm:"column:ISCZ"`
}

//TableName
func (ShJhcwDcSetJYDW) TableName() string {
	return "SH_JHCW_JYDW_PERM"
}

func ShJhcwDcSetJYDWEF() base.EntityFunc {
	return func() interface{} {
		entity := ShJhcwDcSetJYDW{}
		return &entity
	}
}
func ShJhcwDcSetJYDWESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []ShJhcwDcSetJYDW
		return &entities
	}
}

//ShJhcwDcSetFXGL 数据采集设置-中后台操作人设置
type ShJhcwDcSetFXGL struct {
	NIAN int    `gorm:"column:NIAN"`
	BMID int    `gorm:"column:BMID"`
	BMMC string `gorm:"column:BMMC"`
	CZR  int    `gorm:"column:CZR"`
	ISCZ int    `gorm:"column:ISCZ"`
}

//TableName
func (ShJhcwDcSetFXGL) TableName() string {
	return "SH_JHCW_FXGL_PERM"
}

func ShJhcwDcSetFXGLEF() base.EntityFunc {
	return func() interface{} {
		entity := ShJhcwDcSetFXGL{}
		return &entity
	}
}
func ShJhcwDcSetFXGLESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []ShJhcwDcSetFXGL
		return &entities
	}
}

func init() {
	dao1 := base.NewDefaultDao(ShJhcwDcSetJDEF(), ShJhcwDcSetJDESF(), nil, "my")
	dao2 := base.NewDefaultDao(ShJhcwDcSetZHTEF(), ShJhcwDcSetZHTESF(), nil, "my")
	dao3 := base.NewDefaultDao(ShJhcwDcSetJYDWEF(), ShJhcwDcSetJYDWESF(), nil, "my")
	dao4 := base.NewDefaultDao(ShJhcwDcSetFXGLEF(), ShJhcwDcSetFXGLESF(), nil, "my")
	base.DaoPoolObj.Put("ShJhcwDcSetJD", dao1)
	base.DaoPoolObj.Put("ShJhcwDcSetZHT", dao2)
	base.DaoPoolObj.Put("ShJhcwDcSetJYDW", dao3)
	base.DaoPoolObj.Put("ShJhcwDcSetFXGL", dao4)
}
